package com.dongjiantong.biz.service;

import com.dongjiantong.biz.model.FarmStock;
import com.dongjiantong.mybatis.BaseService;

import java.util.List;
import java.util.Map;


/**
 * Created by ThinkPad on 2017/12/6.
 */
public interface FarmStockService extends BaseService<FarmStock>{

    /**
     * 根据养殖场ID查询养殖场存栏
     * @param farmID
     * @return
     */
    FarmStock selectByFarmID(Long farmID);

    /**
     * 根据养殖场id更改存栏
     * @param stock
     * @return
     */
    Boolean UpdateStock(Long farmID,Integer stock);

    /*/**
     * 根据
     * @param farmId
     * @param changeStock
     * @return
    Boolean updateFarmStockByChangeStock(Long farmId, Integer changeStock);*/

    void updateByFarmId(Map<String, Object> stockUpdateParamsMap);

    Integer selectTotalQuantity(Map map);

    List<Map<String,Object>> getStockByBreedType(Integer provinceId, Integer cityId, Integer regionId, Integer streetId, Integer villageId);
}
